<?php

function VoteMember_pntables()
{
    // Initialise table array
    $pntable = array();

    ////////////////////////////////////////////
    //table layer
    ////////////////////////////////////////////
    $pntable['votemember_layer'] = DBUtil::getLimitedTablename('votemember_layer');
    $pntable['votemember_layer_column'] = array(
                                        'uid'               => 'layer_uid',
                                        'province_access'   => 'layer_province_access',
                                        'district_access'   => 'layer_district_access',
                                        'tambon_access'     => 'layer_tambon_access'
    );
    $pntable['votemember_layer_column_def'] = array(
                                        'uid'               => 'INT(11) NOTNULL PRIMARY',
                                        'province_access'   => 'TEXT',
                                        'district_access'   => 'TEXT',
                                        'tambon_access'     => 'TEXT' 
    );                                        
    $pntable['votemember_layer_primary_key_column'] = 'id';

    // add standard data fields
    ObjectUtil::addStandardFieldsToTableDefinition ($pntable['votemember_layer_column'], 'layer_');
    ObjectUtil::addStandardFieldsToTableDataDefinition($pntable['votemember_layer_column_def']);

    return $pntable;
}